'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up (queryInterface, Sequelize) {
    const { INTEGER, STRING } = Sequelize;
    await queryInterface.createTable('movie_data', {
      id: { type: INTEGER, primaryKey: true, autoIncrement: true },
      name: STRING(100),
      classify: STRING(100),
      actors: STRING(300),
      pic:STRING(100),
      desc: STRING(500),
      word: STRING(40),
      score:STRING(6),
      directors: STRING(300),
    });
  },

  async down (queryInterface, Sequelize) {
    await queryInterface.dropTable('movie_data');
  }
};
